<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'chatrain.jsp' starting page</title>
    
	 <link rel="stylesheet" href="../css/table.css" type="text/css"></link>
         <script type="text/javascript">
         function cha1(){
        var name=document.getElementById("name").value;
        var td=document.getElementById("td1");
        if(name.length==0){
           td.innerHTML="培训项目名称不能为空";
           return false;
        } else{
          td.innerHTML="";
          return true;
        }
         }
          function cha3(){
        var name=document.getElementById("password").value;
        var td=document.getElementById("td3");
        if(name.length==0){
           td.innerHTML="开始时间不能为空";
           return false;
        } else{
          td.innerHTML="";
          return true;
        }
         }
          function cha4(){
        var name=document.getElementById("gree").value;
        var td=document.getElementById("td4");
        if(name.length==0){
           td.innerHTML="结束时间不能为空";
           return false;
        } else{
          td.innerHTML="";
          return true;
        }
         }
            function cha5(){
        var name=document.getElementById("jiao").value;
        var td=document.getElementById("td5");
        if(name.length==0){
           td.innerHTML="预算开支不能为空";
           return false;
        } else{
          td.innerHTML="";
          return true;
        }
         }
            function cha6(){
        var name=document.getElementById("tong").value;
        var td=document.getElementById("td6");
        if(name.length==0){
           td.innerHTML="备注不能为空";
           return false;
        } else{
          td.innerHTML="";
          return true;
        }
         }
         function sub(){
          if(cha1()&&cha3()&&cha4()&&cha5()&&cha6()){
          return true;
          }else{
          return false;
          }
         }
         </script>
         <style type="text/css">
         span{
         color:red;
         }
         </style>
  </head>
  

	
		

	<body>
	<div id="addUserInfo">
	
</div>
			<table width="100%">
				<tr>
					<td>
						<font color="#0000CC">您正在做的业务是：人力资源--培训管理--培训项目设置
						</font>
					</td>
				</tr>
			</table>
			<form action="updatetrain.action" method="post" onsubmit="return  sub()">
      <table width="100%" height="400" border="0" style="background-color:#CAFBCA;">
     <tr>
      <td height="10" colspan="2" align="center" class="TD_STYLE1">修改培训项目</td>
    </tr>
    <tr>
    <td width="32%" height="30" align="center" >培训项目编号：</td>
    <td  width="68%">
   ${tr.hrTraId}
    </td>
    </tr>
     <tr>
      <td width="32%" height="30" align="center" >培训项目名称：</td>
      <td width="68%" >
        <input name="tr.hrTraName" value="${tr.hrTraName}" id="name" type="text" onblur="cha1()"/><span id="td1"></span>
      </td>
    </tr>
       <tr>
      <td width="32%" height="30" align="center" >开始时间：</td>
      <td width="68%" >
        <input name="tr.hrTraBeginDate" value="${tr.hrTraBeginDate}" id="password" onblur="cha3()"  type="text"/><span id="td3"></span>
      </td>
    </tr>
      
       <tr>
      <td width="32%" height="30" align="center" >结束时间：</td>
      <td width="68%">
        <input name="tr.hrTraEndDate" value="${tr.hrTraEndDate}" id="gree" onblur="cha4()" type="text"/><span id="td4"></span>
      </td>
    </tr>
     <tr>
      <td width="32%" height="30" align="center" >预算开支：</td>
      <td width="68%">
        <input name="tr.hrTraMoney" value="${tr.hrTraMoney}" id="jiao" onblur="cha5()" type="text"/><span id="td5"></span>
      </td>
    </tr>
     <tr>
      <td width="32%" height="30" align="center" >备注：</td>
      <td width="68%">
        <input name="tr.hrTraDesc" value="${tr.hrTraDesc}" id="tong" onblur="cha6()" type="text"/><span id="td6"></span>
      </td>
    </tr>
   
	<tr >
	 
      <td   height="30" colspan="2" >
      
        <input type="submit" value="修改" style="margin-left: 300px"/>	  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		
      </td>
      
    </tr>
    
  </table>
  </form>
	</body>
</html>